package Object;

public class Animal implements Cloneable {

    String name;

    public Animal() {
    }

    public Animal(String name) {
        this.name = name;
    }

    public Animal clone() {
        Animal an = null;
        try {
            an = (Animal) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return an;
    }

}
